package com.findyou.entity;



/**
 * @Title: Item
 * @Author 贾金博
 * @Package com.findyou.entity
 * @Date 2024/12/19 上午11:27
 * @description: 项目实体类
 */

public class Item {
    private int id;
    private String name;
    private float price;
    private String detail;


    public Item() {
    }

    public Item(int id, String name, float price, String detail) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.detail = detail;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public float getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(float price) {
        this.price = price;
    }

    /**
     * 获取
     * @return detail
     */
    public String getDetail() {
        return detail;
    }

    /**
     * 设置
     * @param detail
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String toString() {
        return "Item{id = " + id + ", name = " + name + ", price = " + price + ", detail = " + detail + "}";
    }
}
